-- GENERATED SPELL FOR [Phantasmal Seeker] --


function spell0_16323(pUnit, Event) --@Curse of Impotence,n/a--
pUnit:FullCastSpellOnTarget(30900,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16323', 555, 1)
end

function spell1_16323(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(13860,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16323', 1500, 1)
end

function Sorts_16323(pUnit, Event)
local choix_sorts_16323 = math.random(0, 1)
if choix_sorts_16323 == 0 then
pUnit:RegisterEvent('spell0_16323', 1, 1)
end
if choix_sorts_16323 == 1 then
pUnit:RegisterEvent('spell1_16323', 1, 1)
end
end

function mob16323_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16323', math.random(1500, 3000), 1)
end

function mob16323_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16323_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16323_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16323, 1, 'mob16323_Action')
RegisterUnitEvent(16323, 2, 'mob16323_Leave')
RegisterUnitEvent(16323, 3, 'mob16323_Kill')
RegisterUnitEvent(16323, 4, 'mob16323_Die')
